export const getFiltersList = (params) => {
  return http({
    method: "GET",
    url: `/filters/list`,
    params,
    prefix: "DESIGNER_URL",
  });
};

export const createFilter = (data) => {
  return http({
    method: "POST",
    url: `/filters/create`,
    data,
    prefix: "DESIGNER_URL",
  });
};

export const editFilter = (data) => {
  return http({
    method: "PUT",
    url: `/filters/edit`,
    data,
    prefix: "DESIGNER_URL",
  });
};

export const deleteFilter = (data) => {
  return http({
    method: "DELETE",
    url: `/filters/delete/${data.id}`,
    prefix: "DESIGNER_URL",
  });
};
